﻿using System;
using System.Collections.Generic;

namespace Joy.Erp.Ufida.Core
{
    public class CachedData<T>
    {
        public List<T> Data { get; set; }
        public DateTime ExpiresAt { get; set; }

        public bool IsExpired()
        {
            return DateTime.UtcNow >= ExpiresAt;
        }
    }
}
